package jm.java.bytecode;

/**
 * @Description 构造方法——init
 * @date 2022/3/27 17:12
 */
public class Init {
    private String a = "s1";

    {
        b = 20;
    }

    private int b = 10;

    {
        a = "s2";
    }

    public Init(String a, int b) {
        this.a = a;
        this.b = b;
    }

    public static void main(String[] args) {
        Init d = new Init("s3", 30);
        System.out.println(d.a);
        System.out.println(d.b);
    }

}

